package com.itheima.table04;

import com.heima.bean.Student;
import com.itheima.bean.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.List;


public interface studenMapp {

    //主键自增
    @Options(useGeneratedKeys = true,keyColumn = "id",keyProperty = "id")
    @Insert(" insert into student values(id=#{id},name=#{name},age=#{age})")
    public abstract List<Student> selectAll(Student stu);
}
